<template>
  <div>
    <el-container>
      <!-- :class="{
          two: $store.state.tab.isCollapse,
          one: !$store.state.tab.isCollapse,
        }" -->
      <el-aside
        :style="{ width: $store.state.tab.isCollapse ? 'auto' : '200px' }"
      >
        <CommonAside />
      </el-aside>
      <el-container>
        <el-header>
          <CommonHeader />
        </el-header>
        <CommonTag />
        <el-main
          ><keep-alive include="User">
            <router-view></router-view> </keep-alive
        ></el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import CommonAside from "../components/CommonAside.vue";
import CommonHeader from "../components/CommonHeader.vue";
import CommonTag from "../components/CommonTag.vue";
export default {
  name: "Main",
  components: {
    CommonAside,
    CommonHeader,
    CommonTag,
  },
};
</script>

<style>
.one {
  width: 200px !important;
}
.two {
  width: auto !important;
}
.el-aside {
  overflow: visible;
}
.el-header {
  padding: 0px;
}
</style>